#include<stdio.h>
int main()
{
	int a,ge,shi,bai;
	scanf("%d",&a);
	ge = a % 10;
	shi = a /10 % 10;
	bai = a / 100;
	printf("%d%d%d",ge,shi,bai);
	return 0; 
}
